#ifndef __SERVER_HPP__
#define __SERVER_HPP__
#include "Acceptor.hpp"
#include "EventLoop.hpp"
#include "TcpConnection.hpp"

namespace wd
{

class Server
{
public:
    Server(const string &,unsigned short);
    void start();
    void stop();
    void setCallBack(const CallBack&,
                     const CallBack&,
                     const CallBack&);

private:
    Acceptor _acceptor;
    EventLoop _loop;
};


}//end of namespace


#endif // __SERVER_HPP__

